package top.dark.design.patterns.singleton;

/**
 * Author: Darkn
 * description: Holder方式，利用静态内部类来实现数据的懒加载已经实例唯一。核心：类的加载过程
 * Create Time: 2021/4/25 16:39
 */
public class Singleton07 {

    private static class Holder{
        private static Singleton07 singleton = new Singleton07();
    }

    public static Singleton07 getInstance() {
        return Holder.singleton;
    }
}
